package com.example.mobile2021606170hsy0418homework;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

public class MainActivity extends AppCompatActivity {
    private RecyclerView rvMainPeople;
    private String[] names = new String[]{"广东职业技术学院", "佛山职业技术学院", "深圳职业技术学院", "番禺职业技术学院", "东莞职业技术学院", "珠海职业技术学院", "河源职业技术学院", "惠州职业技术学院", "梅州职业技术学院", "清远职业技术学院"};
    private TextView tvMainTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        rvMainPeople= findViewById(R.id.rvMainPeople);

        rvMainPeople.setLayoutManager(new LinearLayoutManager(this));
        PeopleAdapter adapter = new PeopleAdapter(names);
        rvMainPeople.setAdapter(adapter);
    }
    }

